<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script>
$(function(){
	$("form").off("submit");
	$("form").on("submit",function(){
		if($("form input[name='name']").val() == '' || $("form input[name='url']").val() == '' ){
			alert("请将信息填写完整!");
			return false ;
		}
		
		//异步提交
		$("form").ajaxSubmit(function(){
			$("form input[name='name']").val("");//清空表单内容
			$("form input[name='url']").val("");//清空表单内容
			alert("修改成功");
			$("span:contains('系统设置')").trigger("click");
		});
		//阻止表单的默认提交行为
		return false;
	});
	
});
</script>	

		<form  class="link_xg_form" action="jsp/manager/updateLinkInfo_Servlet">
			<div>
				<div class="link_xg_bt">
					<span>修改栏目</span>
				</div>
				<div class="">
					<table class="link_xg_tab3">
						<tbody>
							<input type="hidden" name="id" value="${link.id}">
							<tr class="link_xg_tr">
								<td width="90">&nbsp;&nbsp;链接名称：</td>
								<td><input id="name" type="text" name="name" value="${link.name}"></td>
							</tr>
							<tr class="link_xg_tr">
								<td width="90">&nbsp;&nbsp;链接地址：</td>
								<td><input id="code" type="text" name="url" value="${link.url}"></td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="link_xg_wly"></div>
				<div class="link_xg_but">					
					<input type="submit" value="修改" class="link_xg_button"/>
				</div>
			</div>
			</form>